import request from './request.js';
export default {
  activeMaps: function(options) {
    return request({
      method: 'get',
      url: '/analyze/activeMap',
    });
  },
  getVolunteersCountByDay: function(option) {
    return request({
      method: 'get',
      url: '/analyze/getVolunteerCountByDay',
      params: { month: option.month }
    });
  },
  async getElderlyList(option){
    return request({
      method:'get',
      url:'/edlerAnalyze/shorElderly'
    })
  },
  // 获取老人和任务的相关信息
  async getElderlyTaskList(option){
    return request({
      method:'get',
      url:'/edlerAnalyze/listElderly',
      params:option
    })
  },
  async shotVolunteers(option) {
    return request({
        method: 'get',
        url: '/analyze/sortVolunteers',
    })
  },
  async getVolunteersRating(){
    return request({
      method:'get',
      url:'/analyze/getRating',
    })
  },
  async getVolunteersCountByMonth(option) {
    return request({
        method: 'get',
        url: '/analyze/getVolunteerCountByMonth',
    })
  },
  async getVolunteersCountByWeek(option) {
    return request({
      method: 'get',
      url: '/analyze/getVolunteerCountByWeek',
      params: { data: option.month }
    })
  },
  async getVolunteersToDayRegisterList() {
    return request({
        method: 'get',
        url: '/analyze/getVolunteerTodayRegister',
    })
  },
  async getTaskToDayCreatedList(){
    return request({
        method: 'get',
        url: 'TaskAnalyze/getTaskTodayList',
    })
  },
  async getTaskCategory(){
    return request({
        method: 'get',
        url: '/TaskAnalyze/getTaskCategory',
    })
  },
    async getTaskRating() {
        return request({
            method: 'get',
            url: '/TaskAnalyze/getTaskRating',
        })
    },
};
